﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class Change
    {
        [Key]
        public long Id { get; set; }

        public ChangeSet Changeset { get; set; }

        public char Action { get; set; }

        [Column(TypeName = "ntext"), Required]
        public string Path { get; set; }

        [Column(TypeName = "ntext")]
        public string FromPath { get; set; }

        [MaxLength(255)]
        public string FromRevision { get; set; }

        [MaxLength(255)]
        public string Revision { get; set; }

        [MaxLength(255)]
        public string Branch { get; set; }

    }
}
